package com.example.ssm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Repository;

//不想配置datasource启动工程时添加 @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
@SpringBootApplication
// 配置mybatis xml文件的扫描位置
@MapperScan(annotationClass = Repository.class, basePackages = "com.example.ssm")
/**
 * @author Administrator
 */
public class SsmApplication {

    public static void main(String[] args) {
        SpringApplication.run(SsmApplication.class, args);
    }

}